<%= javascript_include_tag :ckeditor,"jquery.form" %>
<!--S 留言版-->
<div class="log_msg">
  <!--S 标题栏-->
  <div class="msg_tit">
    <h3>日志评论</h3>
    <p class="tips c_2">只显示城市达人评论</p>
  </div>
  <!--E 标题栏-->
  <ul class="list" id="commentList">
    <% for comment in @comments %>
      <li>
        <div class="img_box">
          <p class="user_img">
            <%= image_tag "/avatars/noavatar_thumb.gif", :alt => "#{link_to get_member_nick_from_comment(comment)}",:width => 100, :height => 100 %>
          </p>
        </div>
        <div class="msg_cont">
          <p class="msg_info bg_3">
            <span class="user_name"><%= link_to get_member_nick_from_comment(comment), "/home/space/#{comment[:accounts_id]}"%></span>
            <span class="time"><%= status_time_ago_in_words comment[:created_at] %></span>
            <span class="time"><a href="#">回复</a></span>
            <% if current?(Member.find comment[:accounts_id]) %>
              <span class="citation"><a href="javascript:deleteComment({comment_id})">删除</a></span>
            <% end %>
          </p>
          <div class="msg_data">
            <p><%=sanitize comment[:comment] %></p>
          </div>
        </div>
      </li>
    <% end %>
  </ul>
  <!--S 翻页-->
  <div class="page_tags" id="cpage">
    <%= will_paginate @comments %>
  </div>
  <!--E 翻页-->
</div>
<!--E 留言版-->
<!--S 留言版编辑器-->
<% form_for :comment, :url => comment_member_blogs_path(@member), :html => {:id => "blog_comment_form"} do |f|-%>
  <div class="editor_box bor_t_4">
    <div class="tit">
      <h3>发表评论</h3>
      <p class="tips c_2">只有城市达人可以发表评论</p>
    </div>
    <input type="hidden" name="id" value="<%= @blog[:id] %>"/>
    <div class="editor_cont">
      <%= f.ckeditor_textarea(:comment, :comment, {:width => '70%', :height => '200px',:language => 'zh-cn'}) %>
    </div>
    <!--S验证提交-->
    <div class="check_word">
      <p class="check_p" id="check_p" style="display:none">验&nbsp;&nbsp;证&nbsp;&nbsp;码：</p>
      <div class="check_div">
        <p class="word_box" id="word_box" style="display:none"><input id="verify" type="text" size="30" maxlength="30" value="输入下图中的字符，不区分大小写" class="c_2" style="ime-mode:disabled;" /></p><!--S##鼠标获得焦点后文字颜色变为class="c_4"###-->
        <p class="check_img" id="check_img" style="display:none"><img id="verifyImg" src="about:blank" alt="验证码" title="验证码" /> <button onclick="setVerifyImg('verifyImg','verify')" class="c_3">换一张</button></p>
        <p class="btn">
          <button type="submit" class="bt2_2em" id="blog_comment_btn">发表</button>
          <span class="c_2">发表的回复同时显示在QQ空间</span>
        </p>
      </div>
    </div>
    <!--E验证提交-->
  </div>
<% end %>
<!--E 留言版编辑器-->